/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package service.impl;

import dao.NhomSanPhamDAO;
import java.util.List;
import pojo.NhomSanPham;
import service.NhomSanPhamService;

/**
 *
 * @author pvhuy
 */
public class NhomSanPhamServiceImpl implements NhomSanPhamService{
    private NhomSanPhamDAO nhomSanPhamDAO;

    @Override
    public void saveNhomSanPham(NhomSanPham nhomSanPham) {
        nhomSanPhamDAO.saveNhomSanPham(nhomSanPham);
    }

    @Override
    public List<NhomSanPham> listNhomSanPham() {
        return nhomSanPhamDAO.listNhomSanPham();
    }

    @Override
    public String getTenNhomById(int id) {
        return nhomSanPhamDAO.getTenNhomById(id);
    }
    /**
     * @return the nhomSanPhamDAO
     */
    public NhomSanPhamDAO getNhomSanPhamDAO() {
        return nhomSanPhamDAO;
    }

    /**
     * @param nhomSanPhamDAO the nhomSanPhamDAO to set
     */
    public void setNhomSanPhamDAO(NhomSanPhamDAO nhomSanPhamDAO) {
        this.nhomSanPhamDAO = nhomSanPhamDAO;
    }
}
